// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 概况整体数据 GET /overview/all */
export async function overviewControllerGetAllStationOverview(options?: { [key: string]: any }) {
  return request<API.ApiResultAllStationOverviewVO>(`${apiPrefix}/overview/all`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 日充放电量 GET /overview/dayenergy */
export async function overviewControllerGetDayEnergy(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetDayEnergyParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListEnergyAllStation>(`${apiPrefix}/overview/dayenergy`, {
    method: 'GET',
    params: {
      // type has a default value: 1
      type: '1',
      ...params,
    },
    ...(options || {}),
  });
}

/** 日收益 GET /overview/dayincome */
export async function overviewControllerGetDayIncome(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetDayIncomeParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListIncomeAllStation>(`${apiPrefix}/overview/dayincome`, {
    method: 'GET',
    params: {
      // type has a default value: 1
      type: '1',
      ...params,
    },
    ...(options || {}),
  });
}

/** 转换效率排名 GET /overview/efficiency */
export async function overviewControllerGetStationEfficiency(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetStationEfficiencyParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListEfficiencyStation>(`${apiPrefix}/overview/efficiency`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 实时告警列表 GET /overview/events */
export async function overviewControllerGetEventDatas(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetEventDatasParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResult>(`${apiPrefix}/overview/events`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 累计充放电量排名 GET /overview/historyenergy */
export async function overviewControllerGetHistoryEnergy(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetHistoryEnergyParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListEnergyStation>(`${apiPrefix}/overview/historyenergy`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 累计收益排名 GET /overview/historyincome */
export async function overviewControllerGetHistoryIncome(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetHistoryIncomeParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListIncomeStation>(`${apiPrefix}/overview/historyincome`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取指定行政级别下一行政级别站点分别数据 GET /overview/levelcount */
export async function overviewControllerGetLevelStationCount(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetLevelStationCountParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultLevelCountVO>(`${apiPrefix}/overview/levelcount`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取所有站点的地图位置数据 GET /overview/map */
export async function overviewControllerGetAllStationMapDatas(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetAllStationMapDatasParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListStationMapData>(`${apiPrefix}/overview/map`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 站点运行状态数量统计 GET /overview/runcount */
export async function overviewControllerGetStationRunStatus(options?: { [key: string]: any }) {
  return request<API.ApiResultListStationRunStatusCount>(`${apiPrefix}/overview/runcount`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 运行时长排名 GET /overview/runstate */
export async function overviewControllerGetStationRunState(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetStationRunStateParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListWorkstatusRunStation>(`${apiPrefix}/overview/runstate`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 电站概况 GET /overview/stations */
export async function overviewControllerGetStations(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.overviewControllerGetStationsParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListStationCapacityInfo>(`${apiPrefix}/overview/stations`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
